Skip to content

[actor] Add Unreliable Feedback Type#3849

Merged
patrick-ogrady merged 13 commits into
mainfrom
infallible-feedback
May 22, 2026
Merged

[actor] Add Unreliable Feedback Type#3849
patrick-ogrady merged 13 commits into
mainfrom
infallible-feedback

Conversation

@patrick-ogrady
Copy link
Copy Markdown
Contributor

Resolves: #3825

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 21, 2026

Deploying monorepo with  Cloudflare Pages  Cloudflare Pages

Latest commit: cf05798
Status: ✅  Deploy successful!
Preview URL: https://af102322.monorepo-eu0.pages.dev
Branch Preview URL: https://infallible-feedback.monorepo-eu0.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 21, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
commonware-mcp cf05798 May 22 2026, 05:09 AM

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 21, 2026

Benchmark results

Tip

PASSED: No benchmark exceeded the regression threshold.

Benchmark comparison table
Benchmark Baseline (main) Current Delta Threshold Status
qmdb::merkleize/variant=any::unordered::fixed::mmr keys=10000 ch=false sync=false 1.623 ms 1.697 ms +4.55% 10.00% ✅ PASS
qmdb::merkleize/variant=current::ordered::fixed::mmb chunk=256 keys=10000 ch=true sync=false 3.075 ms 3.146 ms +2.29% 10.00% ✅ PASS

Baseline commit(s): edc5cced171c

@patrick-ogrady
Copy link
Copy Markdown
Contributor Author

bugbot run

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 2e16f57. Configure here.

Comment thread actor/src/mailbox.rs
/// This method should not unwind after mutating `overflow`. A panic, including one from a
/// destructor triggered while editing `overflow`, can leave retained overflow data stranded in
/// the mailbox.
fn handle(overflow: &mut Self::Overflow, message: Self);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice that we no longer need to return a boolean here.

Comment thread actor/src/mailbox.rs Outdated
@patrick-ogrady patrick-ogrady changed the title [actor] Add Lossy Feedback Type [actor] Add Unreliable Feedback Type May 21, 2026
Comment thread actor/src/lib.rs Outdated
Comment thread actor/src/lib.rs
@patrick-ogrady
Copy link
Copy Markdown
Contributor Author

bugbot run

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit e1fbdfb. Configure here.

Comment thread actor/src/lib.rs

/// Feedback from endpoints that may reject work under backpressure.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Unreliable<T> {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kept generic in case we start adding more "outcomes" ... if we eventually go a different route, we can do UnreliableFeedback or something.

@patrick-ogrady patrick-ogrady marked this pull request as ready for review May 22, 2026 04:55
@patrick-ogrady patrick-ogrady merged commit 2a51df3 into main May 22, 2026
176 checks passed
@patrick-ogrady patrick-ogrady deleted the infallible-feedback branch May 22, 2026 05:18
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

❌ Patch coverage is 92.86822% with 46 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.76%. Comparing base (c0f7a04) to head (cf05798).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
actor/src/mailbox.rs 93.55% 20 Missing and 3 partials ⚠️
actor/src/lib.rs 42.10% 11 Missing ⚠️
collector/src/p2p/mocks/sender.rs 0.00% 2 Missing ⚠️
consensus/src/marshal/coding/shards/mailbox.rs 50.00% 1 Missing ⚠️
consensus/src/marshal/resolver/handler.rs 50.00% 1 Missing ⚠️
consensus/src/ordered_broadcast/mocks/reporter.rs 0.00% 1 Missing ⚠️
consensus/src/simplex/actors/resolver/ingress.rs 83.33% 1 Missing ⚠️
...c/authenticated/discovery/actors/router/ingress.rs 90.00% 1 Missing ⚠️
.../authenticated/discovery/actors/tracker/ingress.rs 0.00% 1 Missing ⚠️
.../src/authenticated/lookup/actors/router/ingress.rs 80.00% 1 Missing ⚠️
... and 3 more
@@            Coverage Diff             @@
##             main    #3849      +/-   ##
==========================================
- Coverage   95.77%   95.76%   -0.02%     
==========================================
  Files         486      486              
  Lines      199578   200679    +1101     
  Branches     4851     4858       +7     
==========================================
+ Hits       191147   192172    +1025     
- Misses       6806     6873      +67     
- Partials     1625     1634       +9     
Files with missing lines Coverage Δ
broadcast/src/buffered/ingress.rs 98.21% <100.00%> (-0.04%) ⬇️
broadcast/src/buffered/mod.rs 98.39% <100.00%> (ø)
collector/src/p2p/ingress.rs 94.73% <100.00%> (-0.03%) ⬇️
consensus/src/aggregation/mocks/reporter.rs 88.34% <100.00%> (-0.12%) ⬇️
consensus/src/marshal/core/mailbox.rs 92.67% <100.00%> (-0.06%) ⬇️
consensus/src/reporter.rs 63.88% <ø> (-2.35%) ⬇️
consensus/src/simplex/actors/batcher/ingress.rs 91.42% <100.00%> (-0.04%) ⬇️
consensus/src/simplex/actors/voter/ingress.rs 93.80% <100.00%> (-0.03%) ⬇️
...ensus/src/simplex/scheme/bls12381_threshold/vrf.rs 97.68% <100.00%> (+0.22%) ⬆️
...p/src/authenticated/discovery/actors/peer/actor.rs 96.67% <100.00%> (ø)
... and 33 more

... and 15 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0f7a04...cf05798. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[actor] Signal Reliability Requirements

1 participant